#!/bin/bash

#User can pass ALF_HOME path. Defaults to "/opt/alfresco-community".
export ALF_HOME=${1:-"/opt/alfresco-community"}

rm -rf $ALF_HOME/tomcat/*.log
rm -rf $ALF_HOME/tomcat/alfresco.log.*
rm -rf $ALF_HOME/tomcat/share.log.*
rm -rf $ALF_HOME/tomcat/logs/*

printf "\n------------------------------ Logs has been deleted ------------------------- \n\n"